package org.s3.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.s3.project.entity.Cart;
import org.s3.project.mapper.CartMapper;
import org.s3.project.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fy
 * @version 1.0
 * @Description
 * @date 2025/2/20 10:47
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements CartService {
  @Autowired
  private CartMapper cartMapper;
    @Override
    public List<Cart> selectCartByUserId(String name,Integer userId) {
        return cartMapper.selectCartByUserId(name,userId);
    }
}
